package utils

import "backend/config"

func GetStoragePath(mediaType string) string {
	switch mediaType {
	case "image":
		return "/storage/image/"
	case "video":
		return "/storage/video/"
	case "doc":
		return "/storage/doc/"
	default:
		return ""
	}
}

func GetPrefix(mediaType string, conf *config.Configuration) string {
	switch mediaType {
	case "image":
		return conf.App.Env + "/image/"
	case "video":
		return conf.App.Env + "/video/"
	case "doc":
		return conf.App.Env + "/doc/"
	default:
		return ""
	}
}
